//
//  HYUserModel.m
//  HaiYue
//
//  Created by skyline on 2018/6/20.
//  Copyright © 2018年 skyline. All rights reserved.
//

#import "HYUserModel.h"
NSString * const USER_MODEL = @"userModel";
@implementation HYUserModel
//- (void)encodeWithCoder:(NSCoder *)aCoder
//{
//    [aCoder encodeObject:self.account forKey:@"account"];
//    [aCoder encodeObject:self.accountid forKey:@"accountid"];
//    [aCoder encodeObject:self.accesstoken forKey:@"accesstoken"];
//    [aCoder encodeObject:self.nickname forKey:@"nickname"];
//    [aCoder encodeObject:self.phone forKey:@"phone"];
//    [aCoder encodeObject:self.photo forKey:@"photo"];
//    [aCoder encodeObject:@(self.viplevel) forKey:@"viplevel"];
//    [aCoder encodeObject:@(self.vipscore) forKey:@"vipscore"];
//}
//- (id)initWithCoder:(NSCoder *)aDecoder
//{
//    if (self = [super init])
//    {
//        self.account = [aDecoder decodeObjectForKey:@"account"];
//        self.accountid = [aDecoder decodeObjectForKey:@"accountid"];
//        self.accesstoken = [aDecoder decodeObjectForKey:@"accesstoken"];
//        self.nickname = [aDecoder decodeObjectForKey:@"nickname"];
//        self.phone = [aDecoder decodeObjectForKey:@"phone"];
//        self.photo = [aDecoder decodeObjectForKey:@"photo"];
//        self.viplevel = [[aDecoder decodeObjectForKey:@"viplevel"] intValue];
//        self.vipscore = [[aDecoder decodeObjectForKey:@"vipscore"] intValue];
//    }
//    return self;
//}
//- (NSString *)accountid
//{
//    return _accountid?_accountid:@"";
//}
//- (NSString *)account
//{
//    return _account?_account:@"";
//}-
- (NSString *)accesstoken
{
    return ([_accesstoken length] > 1)?_accesstoken:@"";
}
//- (NSString *)nickname
//{
//    return _nickname?_nickname:@"";
//}
//- (NSString *)phone
//{
//    return _phone?_phone:@"";
//}
//- (NSString *)photo
//{
//    return _photo?_photo:@"";
//}
//- (NSString *)balance
//{
//    return _balance?_balance:@"0";
//}
//- (NSString *)viplevel
//{
//    return _viplevel?_viplevel:@"0";
//}
//- (NSString *)vipscore
//{
//    return _vipscore?_vipscore:@"0";
//}
//- (NSString *)area
//{
//    return _area?_area:@"";
//}
//- (NSString *)consignee
//{
//    return _consignee?_consignee:@"";
//}
//- (NSString *)telephone
//{
//    return _telephone?_telephone:@"";
//}
//- (NSString *)address
//{
//    return _address?_address:@"";
//}
//- (NSString *)usepaywordk
//{
//    return _usepaywordk?_usepaywordk:@"";
//}
//- (NSString *)msg
//{
//    return _msg?_msg:@"";
//}

@end
